import request from '../https/request';
//登录验证              // id 1
export const loginOn= (data)=>{
    console.log("========getLogin==========")
   return request({
        url:'/login',//http://localhost:9090/owep/login
        method:'post',
        data:data
    })
}
//获取所有的菜单
export const getMenu=()=>{
    return request({
        url:'/getMenu',
        method:'get',
    })
}

//获取所有备份信息
export const getFiles = (data) => {
    console.log(data)
    return request({
        url: '../json/system/file.json',
        method: 'get',
        //params:data
    });
};
